package com.example.treasurebox

import android.os.Build
import android.os.Bundle
import android.util.Log
import com.example.tb_base.BaseRepository
import com.example.tb_base.BaseViewModel
import com.example.tb_base.base_viewmodel_activity_fragment.BaseViewModelActivity
import com.example.tb_log.log.TbLog
import com.example.treasurebox.databinding.ActivityMainBinding

class MainActivity: BaseViewModelActivity<ActivityMainBinding,BaseViewModel<BaseRepository>>(){
    override fun createViewModel(): BaseViewModel<BaseRepository> = MainViewModel()

    override fun createViewBinding(): ActivityMainBinding  = ActivityMainBinding.inflate(layoutInflater)

    override fun layoutId(): Int = R.layout.activity_main

    override fun onActivityCreated(savedInstanceState: Bundle?) {

    }

}

class MainViewModel: BaseViewModel<BaseRepository>(){
    override fun createRepository(): BaseRepository = BaseRepository()

}